package com.hanson.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hanson.pojo.vo.GoodsVersionStockPriceColorTb;

import java.io.Serializable;

/**
 * <p>
 * 商品版本库存价格表 服务类
 * </p>
 *
 * @author HansonLee
 * @since 2021-01-08
 */

public interface IGoodsVersionStockPriceColorTbService extends IService<GoodsVersionStockPriceColorTb> {


    /**
     *
     * 分页查询goodsVersionStockPriceColorTb
     *
     * @param condition    数据筛选条件
     * @param page      分页对象
     * @return {@link Page< GoodsVersionStockPriceColorTb>}      传进来的分页对象，封装了查询数据结果集
     * @author HansonLee
     * @date 2021-01-08
     **/
    public Page<GoodsVersionStockPriceColorTb> list(String condition, Page<GoodsVersionStockPriceColorTb> page);

    /**
     *
     * 添加新goodsVersionStockPriceColorTb
     *
     * @param goodsVersionStockPriceColorTb      需要添加的goodsVersionStockPriceColorTb
     * @return {@link Object}
     * @author HansonLee
     * @date 2021-01-08
     **/
    public Object add(GoodsVersionStockPriceColorTb goodsVersionStockPriceColorTb);

    /**
     *
     * 根据条件更新goodsVersionStockPriceColorTb
     *
     * @param condition     新数据以及更新条件，使用goodsVersionStockPriceColorTb实体类封装
     * @return {@link Object}
     * @author HansonLee
     * @date 2021-01-08
     **/
    public Object update(GoodsVersionStockPriceColorTb condition);

    /**
     *
     * 根据条件删除goodsVersionStockPriceColorTb
     *
     * @param condition     删除条件，使用goodsVersionStockPriceColorTb实体类封装
     * @return {@link Object}
     * @author HansonLee
     * @date 2021-01-08
     **/
    public Object delete(GoodsVersionStockPriceColorTb condition);

    /**
     *
     * 根据id删除goodsVersionStockPriceColorTb
     *
     * @param id     删除条件，需要删除的id
     * @return {@link Object}
     * @author HansonLee
     * @date 2021-01-08
     **/
    public Object deleteById(Serializable id);
}
